<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${mapperPackage}.${mapperName}">
    <insert id="insertBatch">
        insert into ${tableName} (
            <#assign i1 = 0><#list columns as column><#if i1 != 0>,</#if>${column.name}<#assign i1 = i1+1></#list>
        )
        values
        <foreach collection="list" separator="," item="item">
            (
            <#assign i2 = 0><#list columns as column><#if i2 != 0>,</#if><#noparse>#{</#noparse>item.${column.javaFiled}<#noparse>}</#noparse><#assign i2 = i2+1></#list>
            )
        </foreach>
    </insert>
</mapper>
